package com.itcast.demo_one.kotlin

fun main() {
    // 1. 数字类型
    var intNum: Int = 10
    var longNum: Long = 100L
    var doubleNum: Double = 3.14
    var floatNum: Float = 3.14f

    // 2. 布尔类型
    var isShow: Boolean = true

    // 3. 字符类型
    var char: Char = 'A'

    // 4.  字符串
    val str: String = "Kotlin"
    val multiLineStr = """
        test
        demo one
        test two
    """.trimIndent()
    println(multiLineStr)

    // 字符串模板
    val name: String = "Jack"
    val age: Int = 20
    val message = "Name: $name, Age: ${age + 1}"

     println(message)
}